package cn.example.vip.mall.goods.mapper;


import cn.example.vip.mall.goods.entity.Brand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BrandMapper extends BaseMapper<Brand> {
	
	/**
	 * 根据 categoryId 查询 List<brandId>
	 * @param categoryId
	 * @return
	 */
	@Select("SELECT brand_id FROM category_brand WHERE category_id = #{categoryId}")
	List<Integer> queryBrandsByCategoryIds(Integer categoryId);
}
